import request from '@/config/axios'

// 部门列表
export const deptList = async (params: any) => {
  return await request.get({
    url: 'system/dept/list',
    params
  })
}

// 获取地区
export const getGlobeStatePage = async (params: any = {
  pageNo: 1, pageSize: 1000
}) => {
  return await request.get({
    url: 'trade/globe-state/page',
    params
  })
}


// 获取地区
export const getGlobeState = async (params: any = {
  pageNo: 1, pageSize: 1000
}) => {
  return await request.get({
    url: 'trade/globe-state/list',
    params
  })
}
// 根据地区查
export const getGlobeStateByIdList = async (params: any) => {
  return await request.get({
    url: 'trade/globe-state/getByIdList',
    params
  })
}

// 获得商品分类列表
export const getCategoryList = (params: any) => {
  return request.get({ url: 'product/category/list', params })
}
